@import './variables.scss';

.primary {
  color: $primary !important;
}

.blue {
  color: $blue !important;
}

.red {
  color: $red !important;
}

.green {
  color: $green !important;
}



.mx-container {
  width: 1200px;
  margin: 0 auto;
  background-color: $cardBg;
}

.mx-container-footer {
  width: 1200px;
  margin: 0 auto;
}

.mx-title {
  color: $color;
  font-size: 24px;
  line-height: 150%;
  text-align: center;
  font-weight: bold;
  margin-bottom: 35px;
}

.mx-content {
  width: 1200px;
  margin: 0 auto;
}

.mx-primary {
  color: $primary;
}

.zz-btn {
  // display: inline-block;
  background-color: $primary;
  color: #fff;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
  line-height: 250%;
  &.mini {
    font-size: 12px;
    line-height: 150%;
    padding: 2px 5px;
    border-radius: 5px;
  }

  &.btn-empty {

    background-color: transparent;
    
    color: $subColor;
    border: 1px solid currentColor;
    &:hover{
      background-color: transparentize($blue, .9);
      color: $blue;
    }
    &.btn-blue {
      color: $blue;
      border: 1px solid $blue;
      &:hover{
        background-color: $blue;
        color: #fff;
      }
    }
  }

  &.white {
    color: #fff;
    border-color: #fff;
  }

}

.ellipsis {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ellipsis2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ellipsis3 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.ellipsis5 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}



.flex {
  display: flex;

  &.flexAC {
    align-items: center;
  }
}

.iconfont {
  &.icon-16 {
    font-size: 16px;
  }

  &.icon-18 {
    font-size: 18px;
  }

  &.icon-20 {
    font-size: 20px;
  }

  &.icon-24 {
    font-size: 24px;
  }
}

.sub-nav-wrap .header-nav-wrapper {
  border-bottom: 1px solid #ccc;
  margin-bottom: 35px;
  width:100% !important;
  li{
    font-size: 14px;
    font-weight: normal;
  }
}

.header-nav-wrapper {
  display: flex;

  li {
    position: relative;
    line-height: 60px;
    width: 120px;
    text-align: center;
    color: $color;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    // &::before{
    //   content: "";
    //   bottom: -1px;
    //   width: 100%;
    //   left: 0;
    //   height: 4px;
    //   background-color: transparent;

    // }
    &.active {
      background-color: transparentize($primary, 0.9);
      color: $primary;
      z-index: 2;
      border-bottom: 4px solid $primary;
      
      // &::before {
      //   content: "";
      //   position: absolute;
      //   bottom: -1px;
      //   width: 100%;
      //   left: 0;
      //   height: 4px;
      //   background-color: $primary;
      //   border-radius: 3px;
      //   z-index: 1;
      // }
    }
  }
}

.list-has-poi {
  list-style-type: disc;
  padding-left: 30px;

  li {
    list-style-type: disc;
    color: rgba(59, 59, 59, 1);
    font-size: 14px;
    line-height: 200%;
  }
}

.list-title {
  font-size: 16px;
  margin: 50px 0 25px;
}

.flex-2 {
  display: flex;
  flex-wrap: wrap;

  .flex-2-item {
    width: 42%;
    margin-right: 5%;
    padding: 0 0 5%;

    &:nth-child(2n) {
      margin-right: 0;
    }
  }
}

.flex-3 {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  .flex-3-item {
    width: 30%;
    margin-right: 5%;
    margin-bottom: 20px;
    &:nth-child(3n) {
      margin-right: 0;
    }
  }
}

.flex-4 {
  display: flex;
  flex-wrap: wrap;

  .flex-4-item {
    width: 23.5%;
    margin-right: 2%;

    &:last-child {
      margin-right: 0;
    }
  }
}

// 新闻
.v-html-content {

  ol,
  li,
  ul {
    list-style: decimal;
  }

  h1,
  h2,
  h3,
  h4,
  h5 {
    font-size: 18px;
    margin-bottom: 24px;
    margin-top: 24px;
  }

  p,
  li {
    color: $p;
    line-height: 32px;
    margin-bottom: 12px;
    font-size: 14px;
  }

  img {
    max-width: 100%;
    border-radius: 8px;
  }
}

.marginB {
  margin-bottom: 42px !important;
}

.marginTitle {
  margin-top: 35px !important;
  margin-bottom: 35px !important;
}

.marginTop {
  margin-top: 55px !important;
}

.marginDivision {
  margin: 55px 0 35px !important;
}

.marginSmall {
  margin: 15px !important;
}


// .details-title{
//   color: $color;
//     font-size: 20px;
//     padding: 20px 45px;
//     border-bottom: 1px solid $border;
//     margin-top: 50px;
// }

.sub-nav-content {
  &>div {
    margin-bottom: 80px;

    &:last-child {
      margin-bottom: 0;
    }
  }

  .details-title {
    margin-bottom: 48px;
    font-size: 28px;
    color: $color;
    line-height: 48px;
  }
}

@media screen and (max-width:768px) {
  .el-backtop{
    top:calc(50% + 55px) !important;
  }
  .el-button{
    font-size: .2rem;
    padding: .21rem .35rem;
  }
  html {
    font-size: 32px;
    width: 100%;
    height: 100%;
  }

  .mx-container {
    max-width: 100%;
    min-width: 100%;
    margin: 0 auto;
    padding: 0 .4rem;
  }
  .home-wrap{
    min-width: 100% !important;
  }
  .home-img-wrap{
    width: 100%;
    min-width: 100% !important;
    min-height: 0 !important;
    &>.text-wrap{
      width: 100% !important;
      padding: 0 8%;
      h2.main-title{
        font-size: .55rem !important;
      }
      .sub-text{
        font-size: .25rem !important;
      }
      h3.sub-title{
        font-size: .55rem !important;
        margin-bottom: .3rem  !important;
        margin-top: 0;
      }
      .sub-intro{
        width: 60% !important;
        font-size: .2rem !important;
      }
    } 
    & > img{
      height: 4.5rem;
      object-fit: cover;
      width: 100% !important;
    }
  }

  .details-title {
    margin-bottom: .58rem !important;
    font-size: .48rem !important;
    line-height: .58rem !important;
  }
  .mx-container-footer {
    width: 100%;
  }
  .mx-content {
    max-width: 100%;
    min-width: 100%;
    padding: 0 .4rem;
  }
  .router-wrap{
    .mx-container{
      padding-top: .5rem;
    }
  }

  .content-sub-nav-wrap{
    min-height: 400px;
    img{
      max-width: 100%;
    }
    
  }
  .header-nav-wrapper-wrap{
    overflow-x: auto;
    margin-bottom: .3rem;
    .header-nav-wrapper{
      // overflow-x: auto;
      margin-bottom: 0;
      flex-wrap: nowrap;
      // justify-content: space-between;
      li{
        width: 110px;
        padding: 0 5px !important;
        line-height: 1rem;
        font-size: .25rem;
        // padding: 0 !important;
      }
      &.SpaceB{
        justify-content: space-between;
        li{
          padding: 0 3px;
        }
      }
    } 
  }

  .mx-btn {
    font-size: .28rem;
    line-height: .32rem;
    padding: 0.25rem 0.45rem;
    border-radius: 0.4rem;

    i {
      margin-right: .05rem;
    }

    &.radius {
      // padding: 0;
      // width: 32px;
      // height: 32px;
      // line-height: 32px;
      // font-size: 20px;
      // text-align: center;
    }

    &.empty {
      // background-color: transparent;
      // color: $primary;
      // border: 1px solid $primary;
      // border-radius: 4px;
      // padding-left: 20px;
      // padding-right: 20px;
    }
  }

  .iconfont {
    &.icon-16 {
      font-size: .42rem;
    }

    &.icon-18 {
      font-size: .48rem;
    }

    &.icon-20 {
      font-size: .54rem;
    }

    &.icon-24 {
      font-size: .6rem;
    }
  }

  body {
    font-size: 12px;
    /*记得要把body font－size默认值设回来 不然就默认字体就变成32px啦*/
  }

  .v-html-content {

    ol,
    li,
    ul {
      list-style: decimal;
    }

    h1,
    h2,
    h3,
    h4,
    h5 {
      font-size: .43rem;
      margin-bottom: .42rem;
      margin-top: .42rem;
    }

    p,
    li {
      color: $p;
      margin-bottom: .16rem;
      font-size: .36rem;
    }

    img {
      max-width: 100%;
      border-radius: 8px;
    }
  }
  .marginTop {
    margin-top: .4rem !important;
  }

  .flex-3{
    flex-wrap: wrap;
    .flex-3-item{
      width: 95%;
      margin: 0 2.5% .2rem;
    }
  }
  .flex-2{
    flex-wrap: wrap;
    .flex-2-item{
      width: 95% !important;
      margin: 0 2.5% .3rem !important;
      padding-bottom: 0 !important;
    }
  }
  .sub-nav-content > div{
    margin-bottom: .8rem;
  }

  .mx-title {
    color: $color;
    font-size: .55rem;
    margin-bottom: .4rem;
  }

  ul.sup-type{
    li{
      img{
        width: 40px !important;
        height: 40px !important;
      }
    }
  }
}


